@charset "UTF-8";
.game-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #2c3e50 0%, #4a6741 100%);
  display: flex;
  flex-direction: column;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 88rpx;
  padding: 0 20rpx;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left,
.header-right {
  width: 100rpx;
  display: flex;
  align-items: center;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.level-title {
  font-size: 32rpx;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.back-btn,
.reset-btn {
  width: 64rpx;
  height: 64rpx;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.back-btn:active,
.reset-btn:active {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0.95);
}

.back-icon,
.reset-icon {
  font-size: 32rpx;
  color: white;
  font-weight: bold;
  line-height: 1;
}

.game-board {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40rpx 20rpx;
  min-height: calc(100vh - 180rpx);
  width: 100%;
}

.map-container {
  display: inline-block;
  border: 4rpx solid rgba(255, 255, 255, 0.3);
  border-radius: 12rpx;
  padding: 8rpx;
  box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.3);
  position: relative;
}

.map-row {
  display: flex;
}

.map-cell-wrapper {
  width: 50rpx;
  height: 50rpx;
  position: relative;
  cursor: pointer;
}

.map-cell-wrapper:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.map-cell {
  width: 50rpx;
  height: 50rpx;
  position: relative;
}

.game-cell {
  width: 50rpx;
  height: 50rpx;
  background-size: contain;
  background-repeat: no-repeat;
  position: relative;
  transition: all 0.2s ease-in-out;
}

/* 地板 - 背景色 */
.floor {
  width: 50rpx;
  height: 50rpx;
}

/* 墙体 */
.wall {
  width: 50rpx;
  height: 50rpx;
}

/* 箱子 */
.box {
  width: 50rpx;
  height: 50rpx;
}

/* 目标 */
.target {
  width: 50rpx;
  height: 50rpx;
}

/* 位于目标上的箱子 */
.box-on-target {
  width: 50rpx;
  height: 50rpx;
}

/* 玩家 - 不同方向 */
.player.left,
.player.up,
.player.right,
.player.down {
  width: 50rpx;
  height: 50rpx;
}

/* 位于目标上的玩家 */
.player-on-target.left,
.player-on-target.up,
.player-on-target.right,
.player-on-target.down {
  width: 50rpx;
  height: 50rpx;
}

/* 独立的玩家精灵 */
.player-sprite {
  pointer-events: none;
  width: 50rpx;
  height: 50rpx;
}

/* 叠加图标样式 */
.overlay-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 50rpx;
  height: 50rpx;
  z-index: 5;
  pointer-events: none;
}

.selected-icon {
  z-index: 6;
}

.move-point-icon {
  z-index: 5;
}

.game-info {
  padding: 20rpx;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.moves-count {
  font-size: 28rpx;
  color: white;
  font-weight: bold;
}

.level-info {
  font-size: 24rpx;
  color: rgba(255, 255, 255, 0.8);
}
